package com.yuzhitong.shapi.contract;

import com.yuzhitong.shapi.base.BaseView;
import com.yuzhitong.shapi.base.net.BaseListBean;
import com.yuzhitong.shapi.base.net.BaseObjectBean;
import com.yuzhitong.shapi.bean.CategoryBean;
import com.yuzhitong.shapi.bean.PlayAddressBean;

import java.util.List;
import java.util.Map;

import io.reactivex.rxjava3.core.Observable;

/**
 * Created by Brsya
 * CreateDate: 2022/5/8  14:31
 * Description:
 * 影视
 */
public interface MovieContract {
    interface Model{
        /**
         * 获取分类
         */
        Observable<BaseListBean<CategoryBean>> getCategory(Map<String, Object> par);

        /**
         * 获取第三方接口
         */
        Observable<BaseObjectBean<PlayAddressBean>> getPlayAddressNew(Map<String, Object> par);

    }

    interface View extends BaseView {
        /**
         * 显示分类
         */
        void showCategory(List<CategoryBean> categoryBeans);
    }

    interface Presenter{
        /**
         * 获取分类
         */
        void  getCategory();

        /**
         * 获取第三方接口
         */
        void getPlayAddressNew();
    }
}
